//
//  LocalStoreManager.h
//  ZiChanBao
//
//  Created by Senela on 15/7/22.
//  Copyright (c) 2015年 worldunion.com.cn. All rights reserved.
//

#import <Foundation/Foundation.h>



/**
 *  用户的数据操作的读取类，定义了一些公共属性和方法
 */
@interface LocalStoreManager : NSObject

+(LocalStoreManager *)shareInstance;


#pragma mark --- 将NSString所有的空格及字符串去掉
- (NSString *)removeSpaceAndNewline:(NSString *)str;


/**
 *  在defualt中设置key和value值
 *
 *  @param value 值
 *  @param key   关键字
 *
 */
-(void)setValueInDefault:(id)value withKey:(NSString *)key;

/**
 *  获取当前用户信息
 */
//-(UserModel *)getCurrentUserInfoWithKey:(NSString *)key;
//
//
//-(CityObject *)getCurrentCityWithKey:(NSString *)key;

/**
 *  根据key获取对应的defualt中的value值
 *
 *  @param key
 *
 *  @return
 */
-(id)getValueArrFromDefaultWithKey:(NSString *)key;

- (id)getValueFromDefaultWithKey:(NSString *)key;

//根据分类key和对应code查找value
-(NSString *)getValueByCode:(NSString *)code type:(NSString *)type;

//根据分类key和对应value 查找code
-(NSString *)getCodeByValue:(NSString *)value type:(NSString *)type;

@end
